package edu.sctu.fengleilin.month06.day150615;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

/**
 * Created by user09 on 2015/6/15.
 */
public class URLReader {
    public static void main(String[] args) throws Exception{

            URL tric = new URL("http://www.chd.edu.cn/");

        BufferedReader in = new BufferedReader(
                new InputStreamReader(tric.openStream())
        );
        String inputLine;
        while((inputLine = in.readLine()) != null){
            System.out.println(inputLine);
        }
        in.close();
    }
}
